home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.1B1 / AIncludes / Displays.a < prev    next >
Encoding:
Text File  |  1995-04-18  |  23.9 KB  |  976 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Displays.a
  3. ;
  4. ;    Contains:    Display Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.1ß1 in “MPW Prerelease” on ETO #17
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__DISPLAYS__') = 'UNDEFINED' THEN
  21. __DISPLAYS__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  25.     include 'ConditionalMacros.a'
  26.     ENDIF
  27.  
  28.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  29.     include 'Components.a'
  30.     ENDIF
  31. ;        include 'Types.a'                                            ;
  32. ;        include 'MixedMode.a'                                        ;
  33.  
  34.     IF &TYPE('__VIDEO__') = 'UNDEFINED' THEN
  35.     include 'Video.a'
  36.     ENDIF
  37. ;        include 'Quickdraw.a'                                        ;
  38. ;            include 'QuickdrawText.a'                                ;
  39.     IF 0 THEN
  40.  
  41.  
  42.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  43.     include 'AppleEvents.a'
  44.     ENDIF
  45. ;        include 'Errors.a'                                            ;
  46. ;        include 'Memory.a'                                            ;
  47. ;        include 'OSUtils.a'                                        ;
  48. ;        include 'Events.a'                                            ;
  49. ;        include 'EPPC.a'                                            ;
  50. ;            include 'AppleTalk.a'                                    ;
  51. ;            include 'Files.a'                                        ;
  52. ;            include 'PPCToolbox.a'                                    ;
  53. ;            include 'Processes.a'                                    ;
  54. ;        include 'Notification.a'                                    ;
  55.  
  56.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  57.     include 'Windows.a'
  58.     ENDIF
  59. ;        include 'Controls.a'                                        ;
  60. ;            include 'Menus.a'                                        ;
  61.  
  62.     IF &TYPE('__EVENTS__') = 'UNDEFINED' THEN
  63.     include 'Events.a'
  64.     ENDIF
  65.  
  66.     IF &TYPE('__PROCESSES__') = 'UNDEFINED' THEN
  67.     include 'Processes.a'
  68.     ENDIF
  69.  
  70.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  71.     include 'Dialogs.a'
  72.     ENDIF
  73. ;        include 'TextEdit.a'                                        ;
  74.     ENDIF
  75.  
  76.  
  77. ; AppleEvents Core Suite 
  78. kAESystemConfigNotice            EQU        'cnfg'
  79. ; Core Suite types 
  80. kAEDisplayNotice                EQU        'dspl'
  81. kAEDisplaySummary                EQU        'dsum'
  82. keyDMConfigVersion                EQU        'dmcv'
  83. keyDMConfigFlags                EQU        'dmcf'
  84. keyDMConfigReserved                EQU        'dmcr'
  85. keyDisplayID                    EQU        'dmid'
  86. keyDisplayComponent                EQU        'dmdc'
  87. keyDisplayDevice                EQU        'dmdd'
  88. keyDisplayFlags                    EQU        'dmdf'
  89. keyDisplayMode                    EQU        'dmdm'
  90. keyDisplayModeReserved            EQU        'dmmr'
  91. keyDisplayReserved                EQU        'dmdr'
  92. keyDisplayMirroredId            EQU        'dmmi'
  93. keyDeviceFlags                    EQU        'dddf'
  94. keyDeviceDepthMode                EQU        'dddm'
  95. keyDeviceRect                    EQU        'dddr'
  96. keyPixMapRect                    EQU        'dpdr'
  97. keyPixMapHResolution            EQU        'dphr'
  98. keyPixMapVResolution            EQU        'dpvr'
  99. keyPixMapPixelType                EQU        'dppt'
  100. keyPixMapPixelSize                EQU        'dpps'
  101. keyPixMapCmpCount                EQU        'dpcc'
  102. keyPixMapCmpSize                EQU        'dpcs'
  103. keyPixMapAlignment                EQU        'dppa'
  104. keyPixMapResReserved            EQU        'dprr'
  105. keyPixMapReserved                EQU        'dppr'
  106. keyPixMapColorTableSeed            EQU        'dpct'
  107. keySummaryMenubar                EQU        'dsmb'
  108. keySummaryChanges                EQU        'dsch'
  109. keyDisplayOldConfig                EQU        'dold'
  110. keyDisplayNewConfig                EQU        'dnew'
  111.  
  112. dmOnlyActiveDisplays            EQU        true
  113. dmAllDisplays                    EQU        false
  114.  
  115. ; Switch Flags 
  116. kNoSwitchConfirmBit                EQU        0                    ; Flag indicating that there is no need to confirm a switch to this mode 
  117. kDepthNotAvailableBit            EQU        1                    ; Current depth not available in new mode 
  118. kShowModeBit                    EQU        3                    ; Show this mode even though it requires a confirm. 
  119. kModeNotResizeBit                EQU        4                    ; Do not use this mode to resize display (for cards that mode drives a different connector). 
  120.  
  121. ;    Summary Change Flags (sticky bits indicating an operation was performed)
  122. ;    For example, moving a display then moving it back will still set the kMovedDisplayBit.
  123. ;
  124. kBeginEndConfigureBit            EQU        0
  125. kMovedDisplayBit                EQU        1
  126. kSetMainDisplayBit                EQU        2
  127. kSetDisplayModeBit                EQU        3
  128. kAddDisplayBit                    EQU        4
  129. kRemoveDisplayBit                EQU        5
  130. kNewDisplayBit                    EQU        6
  131. kDisposeDisplayBit                EQU        7
  132. kEnabledDisplayBit                EQU        8
  133. kDisabledDisplayBit                EQU        9
  134. kMirrorDisplayBit                EQU        10
  135. kUnMirrorDisplayBit                EQU        11
  136.  
  137. ;    Power Mode constants for AVPowerStateRec.powerState.    
  138. kAVPowerOff                        EQU        0
  139. kAVPowerStandby                    EQU        1
  140. kAVPowerSuspend                    EQU        2
  141. kAVPowerOn                        EQU        3
  142.  
  143. ; Notification Messages for extended call back routines 
  144. kDMNotifyInstalled                EQU        1                    ; At install time 
  145. kDMNotifyEvent                    EQU        2                    ; Post change time 
  146. kDMNotifyRemoved                EQU        3                    ; At remove time 
  147. kDMNotifyPrep                    EQU        4                    ; Pre change time 
  148. kDMNotifyExtendEvent            EQU        5                    ; Allow registrees to extend apple event before it is sent 
  149. kDMNotifyDependents                EQU        6                    ; Minor notification check without full update 
  150. ; Notification Flags 
  151. kExtendedNotificationProc        EQU        (1 << 16)
  152.  
  153. ; types for notifyType 
  154. kFullNotify                        EQU        0                    ; This is the appleevent whole nine yards notify 
  155. kFullDependencyNotify            EQU        1                    ; Only sends to those who want to know about interrelated functionality (used for updating UI) 
  156.  
  157. ; DisplayID/DeviceID constants 
  158. kDummyDeviceID                    EQU        $0FF                ; This is the ID of the dummy display, used when the last “real” display is disabled.
  159. kInvalidDisplayID                EQU        $000                ; This is the invalid ID
  160. kFirstDisplayID                    EQU        $100
  161.  
  162. ; bits for panelListFlags 
  163. kAllowDuplicatesBit                EQU        0
  164.  
  165. ; Constants for fidelity checks 
  166. kNoFidelity                        EQU        0
  167. kMinimumFidelity                EQU        1
  168. kDefaultFidelity                EQU        500                    ; I'm just picking a number for Apple default panels and engines
  169. kDefaultManufacturerFidelity    EQU        1000                ; I'm just picking a number for Manufacturer's panels and engines (overrides apple defaults)
  170.  
  171. kAnyPanelType                    EQU        0                    ; Pass to DMNewEngineList for list of all panels (as opposed to specific types)
  172. kAnyEngineType                    EQU        0                    ; Pass to DMNewEngineList for list of all engines
  173. kAnyDeviceType                    EQU        0                    ; Pass to DMNewDeviceList for list of all devices
  174. kAnyPortType                    EQU        0                    ; Pass to DMNewDevicePortList for list of all devices
  175.  
  176. ; portListFlags for DM_NewDevicePortList 
  177. ; Should offline devices be put into the port list (such as dummy display) 
  178. kPLIncludeOfflineDevicesBit        EQU        0
  179.  
  180. ; typedef unsigned long     DMFidelityType
  181. ; AVID is an ID for ports and devices the old DisplayID type
  182. ;    is carried on for compatibility
  183. ;
  184. ; typedef unsigned long     AVIDType
  185. ; typedef AVIDType             DisplayIDType
  186. ; typedef void                 *DMListType
  187. ; typedef unsigned long     DMListIndexType
  188. AVPowerStateRec         RECORD    0
  189. powerState                 ds.l   1        ; offset: $0 (0)
  190. powerFlags                 ds.l   1        ; offset: $4 (4)
  191. powerReserved1             ds.l   1        ; offset: $8 (8)
  192. powerReserved2             ds.l   1        ; offset: $C (12)
  193. sizeof                     EQU *            ; size:   $10 (16)
  194.                         ENDR
  195.  
  196. ; typedef struct AVPowerStateRec  AVPowerStateRec
  197. ; typedef AVPowerStateRec     *AVPowerStatePtr
  198. DMComponentListEntryRec RECORD    0
  199. itemID                     ds.l   1        ; offset: $0 (0)        ; DisplayID Manager
  200. itemComponent             ds.l   1        ; offset: $4 (4)        ; Component Manager
  201. itemDescription             ds     ComponentDescription ; offset: $8 (8) ; We can always construct this if we use something beyond the compontent mgr.
  202. itemClass                 ds.l   1        ; offset: $1C (28)        ; Class of group to put this panel (eg geometry/color/etc for panels, brightness/contrast for engines, video out/sound/etc for devices)
  203. itemFidelity             ds.l   1        ; offset: $20 (32)        ; How good is this item for the specified search?
  204. itemFlags                 ds.l   1        ; offset: $24 (36)        ; Set to 0 (future expansion)
  205. itemReserved             ds.l   1        ; offset: $28 (40)        ; What kind of code does the itemReference point to  (right now - kPanelEntryTypeComponentMgr only)
  206. itemFuture                 ds.l   1        ; offset: $2C (44)        ; Set to 0 (future expansion - probably an alternate code style)
  207. sizeof                     EQU *            ; size:   $30 (48)
  208.                         ENDR
  209.  
  210. ; typedef struct DMComponentListEntryRec  DMComponentListEntryRec
  211. ; typedef DMComponentListEntryRec  *DMComponentListEntryPtr
  212. ; ••• Move AVLocationRec to AVComponents.i AFTER AVComponents.i is created
  213. AVLocationRec             RECORD    0
  214. locationConstant         ds.l   1        ; offset: $0 (0)        ; Set to 0 (future expansion - probably an alternate code style)
  215. sizeof                     EQU *            ; size:   $4 (4)
  216.                         ENDR
  217.  
  218. ; typedef struct AVLocationRec  AVLocationRec
  219. ; typedef AVLocationRec     *AVLocationPtr
  220. DMDisplayModeListEntryRec RECORD    0
  221. displayModeFlags         ds.l   1        ; offset: $0 (0)
  222. displayModeSwitchInfo     ds.l   1        ; offset: $4 (4)
  223. displayModeResolutionInfo ds.l   1        ; offset: $8 (8)
  224. displayModeTimingInfo     ds.l   1        ; offset: $C (12)
  225. displayModeSmallestRect     ds.l   1        ; offset: $10 (16)        ; Smallest Mode Rect
  226. displayModeLargestRect     ds.l   1        ; offset: $14 (20)        ; Largest Mode Rect
  227. displayModeName             ds.l   1        ; offset: $18 (24)        ; Name of the timing mode
  228. sizeof                     EQU *            ; size:   $1C (28)
  229.                         ENDR
  230.  
  231. ; typedef struct DMDisplayModeListEntryRec  DMDisplayModeListEntryRec
  232. ; typedef DMDisplayModeListEntryRec  *DMDisplayModeListEntryPtr
  233. DependentNotifyRec         RECORD    0
  234. notifyType                 ds.l   1        ; offset: $0 (0)        ; What type was the engine that made the change (may be zero)
  235. notifyClass                 ds.l   1        ; offset: $4 (4)        ; What class was the change (eg geometry, color etc)
  236. notifyPortID             ds.l   1        ; offset: $8 (8)        ; Which device was touched (kInvalidDisplayID -> all or none)
  237. notifyComponent             ds.l   1        ; offset: $C (12)        ; What engine did it (may be 0)?
  238. notifyVersion             ds.l   1        ; offset: $10 (16)        ; Set to 0 (future expansion)
  239. notifyFlags                 ds.l   1        ; offset: $14 (20)        ; Set to 0 (future expansion)
  240. notifyReserved             ds.l   1        ; offset: $18 (24)        ; Set to 0 (future expansion)
  241. notifyFuture             ds.l   1        ; offset: $1C (28)        ; Set to 0 (future expansion)
  242. sizeof                     EQU *            ; size:   $20 (32)
  243.                         ENDR
  244.  
  245. ; typedef struct DependentNotifyRec  DependentNotifyRec
  246. ; typedef DependentNotifyRec  *DependentNotifyPtr
  247. ;
  248. ; pascal GDHandle DMGetFirstScreenDevice(Boolean activeOnly)
  249. ;
  250.     IF ¬ GENERATINGCFM THEN
  251.         Macro
  252.         _DMGetFirstScreenDevice
  253.             moveq    #0,d0
  254.             dc.w     $ABEB
  255.         EndM
  256.     ELSE
  257.         IMPORT_CFM_FUNCTION    DMGetFirstScreenDevice
  258.     ENDIF
  259.  
  260. ;
  261. ; pascal GDHandle DMGetNextScreenDevice(GDHandle theDevice, Boolean activeOnly)
  262. ;
  263.     IF ¬ GENERATINGCFM THEN
  264.         Macro
  265.         _DMGetNextScreenDevice
  266.             moveq    #1,d0
  267.             dc.w     $ABEB
  268.         EndM
  269.     ELSE
  270.         IMPORT_CFM_FUNCTION    DMGetNextScreenDevice
  271.     ENDIF
  272.  
  273. ;
  274. ; pascal void DMDrawDesktopRect(Rect *globalRect)
  275. ;
  276.     IF ¬ GENERATINGCFM THEN
  277.         Macro
  278.         _DMDrawDesktopRect
  279.             moveq    #2,d0
  280.             dc.w     $ABEB
  281.         EndM
  282.     ELSE
  283.         IMPORT_CFM_FUNCTION    DMDrawDesktopRect
  284.     ENDIF
  285.  
  286. ;
  287. ; pascal void DMDrawDesktopRegion(RgnHandle globalRgn)
  288. ;
  289.     IF ¬ GENERATINGCFM THEN
  290.         Macro
  291.         _DMDrawDesktopRegion
  292.             moveq    #3,d0
  293.             dc.w     $ABEB
  294.         EndM
  295.     ELSE
  296.         IMPORT_CFM_FUNCTION    DMDrawDesktopRegion
  297.     ENDIF
  298.  
  299. ;
  300. ; pascal OSErr DMBeginConfigureDisplays(Handle *displayState)
  301. ;
  302.     IF ¬ GENERATINGCFM THEN
  303.         Macro
  304.         _DMBeginConfigureDisplays
  305.             move.w    #$0206,d0
  306.             dc.w     $ABEB
  307.         EndM
  308.     ELSE
  309.         IMPORT_CFM_FUNCTION    DMBeginConfigureDisplays
  310.     ENDIF
  311.  
  312. ;
  313. ; pascal OSErr DMEndConfigureDisplays(Handle displayState)
  314. ;
  315.     IF ¬ GENERATINGCFM THEN
  316.         Macro
  317.         _DMEndConfigureDisplays
  318.             move.w    #$0207,d0
  319.             dc.w     $ABEB
  320.         EndM
  321.     ELSE
  322.         IMPORT_CFM_FUNCTION    DMEndConfigureDisplays
  323.     ENDIF
  324.  
  325. ;
  326. ; pascal OSErr DMAddDisplay(GDHandle newDevice, short driver, unsigned long mode, unsigned long reserved, unsigned long displayID, Component displayComponent, Handle displayState)
  327. ;
  328.     IF ¬ GENERATINGCFM THEN
  329.         Macro
  330.         _DMAddDisplay
  331.             move.w    #$0D08,d0
  332.             dc.w     $ABEB
  333.         EndM
  334.     ELSE
  335.         IMPORT_CFM_FUNCTION    DMAddDisplay
  336.     ENDIF
  337.  
  338. ;
  339. ; pascal OSErr DMMoveDisplay(GDHandle moveDevice, short x, short y, Handle displayState)
  340. ;
  341.     IF ¬ GENERATINGCFM THEN
  342.         Macro
  343.         _DMMoveDisplay
  344.             move.w    #$0609,d0
  345.             dc.w     $ABEB
  346.         EndM
  347.     ELSE
  348.         IMPORT_CFM_FUNCTION    DMMoveDisplay
  349.     ENDIF
  350.  
  351. ;
  352. ; pascal OSErr DMDisableDisplay(GDHandle disableDevice, Handle displayState)
  353. ;
  354.     IF ¬ GENERATINGCFM THEN
  355.         Macro
  356.         _DMDisableDisplay
  357.             move.w    #$040A,d0
  358.             dc.w     $ABEB
  359.         EndM
  360.     ELSE
  361.         IMPORT_CFM_FUNCTION    DMDisableDisplay
  362.     ENDIF
  363.  
  364. ;
  365. ; pascal OSErr DMEnableDisplay(GDHandle enableDevice, Handle displayState)
  366. ;
  367.     IF ¬ GENERATINGCFM THEN
  368.         Macro
  369.         _DMEnableDisplay
  370.             move.w    #$040B,d0
  371.             dc.w     $ABEB
  372.         EndM
  373.     ELSE
  374.         IMPORT_CFM_FUNCTION    DMEnableDisplay
  375.     ENDIF
  376.  
  377. ;
  378. ; pascal OSErr DMRemoveDisplay(GDHandle removeDevice, Handle displayState)
  379. ;
  380.     IF ¬ GENERATINGCFM THEN
  381.         Macro
  382.         _DMRemoveDisplay
  383.             move.w    #$040C,d0
  384.             dc.w     $ABEB
  385.         EndM
  386.     ELSE
  387.         IMPORT_CFM_FUNCTION    DMRemoveDisplay
  388.     ENDIF
  389.  
  390. ;
  391. ; pascal OSErr DMSetMainDisplay(GDHandle newMainDevice, Handle displayState)
  392. ;
  393.     IF ¬ GENERATINGCFM THEN
  394.         Macro
  395.         _DMSetMainDisplay
  396.             move.w    #$0410,d0
  397.             dc.w     $ABEB
  398.         EndM
  399.     ELSE
  400.         IMPORT_CFM_FUNCTION    DMSetMainDisplay
  401.     ENDIF
  402.  
  403. ;
  404. ; pascal OSErr DMSetDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long *depthMode, unsigned long reserved, Handle displayState)
  405. ;
  406.     IF ¬ GENERATINGCFM THEN
  407.         Macro
  408.         _DMSetDisplayMode
  409.             move.w    #$0A11,d0
  410.             dc.w     $ABEB
  411.         EndM
  412.     ELSE
  413.         IMPORT_CFM_FUNCTION    DMSetDisplayMode
  414.     ENDIF
  415.  
  416. ;
  417. ; pascal OSErr DMCheckDisplayMode(GDHandle theDevice, unsigned long mode, unsigned long depthMode, unsigned long *switchFlags, unsigned long reserved, Boolean *modeOk)
  418. ;
  419.     IF ¬ GENERATINGCFM THEN
  420.         Macro
  421.         _DMCheckDisplayMode
  422.             move.w    #$0C12,d0
  423.             dc.w     $ABEB
  424.         EndM
  425.     ELSE
  426.         IMPORT_CFM_FUNCTION    DMCheckDisplayMode
  427.     ENDIF
  428.  
  429. ;
  430. ; pascal OSErr DMGetDeskRegion(RgnHandle *desktopRegion)
  431. ;
  432.     IF ¬ GENERATINGCFM THEN
  433.         Macro
  434.         _DMGetDeskRegion
  435.             move.w    #$0213,d0
  436.             dc.w     $ABEB
  437.         EndM
  438.     ELSE
  439.         IMPORT_CFM_FUNCTION    DMGetDeskRegion
  440.     ENDIF
  441.  
  442. ;
  443. ; pascal OSErr DMRegisterNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  444. ;
  445.     IF ¬ GENERATINGCFM THEN
  446.         Macro
  447.         _DMRegisterNotifyProc
  448.             move.w    #$0414,d0
  449.             dc.w     $ABEB
  450.         EndM
  451.     ELSE
  452.         IMPORT_CFM_FUNCTION    DMRegisterNotifyProc
  453.     ENDIF
  454.  
  455. ;
  456. ; pascal OSErr DMRemoveNotifyProc(DMNotificationUPP notificationProc, ProcessSerialNumberPtr whichPSN)
  457. ;
  458.     IF ¬ GENERATINGCFM THEN
  459.         Macro
  460.         _DMRemoveNotifyProc
  461.             move.w    #$0415,d0
  462.             dc.w     $ABEB
  463.         EndM
  464.     ELSE
  465.         IMPORT_CFM_FUNCTION    DMRemoveNotifyProc
  466.     ENDIF
  467.  
  468. ;
  469. ; pascal OSErr DMQDIsMirroringCapable(Boolean *qdIsMirroringCapable)
  470. ;
  471.     IF ¬ GENERATINGCFM THEN
  472.         Macro
  473.         _DMQDIsMirroringCapable
  474.             move.w    #$0216,d0
  475.             dc.w     $ABEB
  476.         EndM
  477.     ELSE
  478.         IMPORT_CFM_FUNCTION    DMQDIsMirroringCapable
  479.     ENDIF
  480.  
  481. ;
  482. ; pascal OSErr DMCanMirrorNow(Boolean *canMirrorNow)
  483. ;
  484.     IF ¬ GENERATINGCFM THEN
  485.         Macro
  486.         _DMCanMirrorNow
  487.             move.w    #$0217,d0
  488.             dc.w     $ABEB
  489.         EndM
  490.     ELSE
  491.         IMPORT_CFM_FUNCTION    DMCanMirrorNow
  492.     ENDIF
  493.  
  494. ;
  495. ; pascal OSErr DMIsMirroringOn(Boolean *isMirroringOn)
  496. ;
  497.     IF ¬ GENERATINGCFM THEN
  498.         Macro
  499.         _DMIsMirroringOn
  500.             move.w    #$0218,d0
  501.             dc.w     $ABEB
  502.         EndM
  503.     ELSE
  504.         IMPORT_CFM_FUNCTION    DMIsMirroringOn
  505.     ENDIF
  506.  
  507. ;
  508. ; pascal OSErr DMMirrorDevices(GDHandle gD1, GDHandle gD2, Handle displayState)
  509. ;
  510.     IF ¬ GENERATINGCFM THEN
  511.         Macro
  512.         _DMMirrorDevices
  513.             move.w    #$0619,d0
  514.             dc.w     $ABEB
  515.         EndM
  516.     ELSE
  517.         IMPORT_CFM_FUNCTION    DMMirrorDevices
  518.     ENDIF
  519.  
  520. ;
  521. ; pascal OSErr DMUnmirrorDevice(GDHandle gDevice, Handle displayState)
  522. ;
  523.     IF ¬ GENERATINGCFM THEN
  524.         Macro
  525.         _DMUnmirrorDevice
  526.             move.w    #$041A,d0
  527.             dc.w     $ABEB
  528.         EndM
  529.     ELSE
  530.         IMPORT_CFM_FUNCTION    DMUnmirrorDevice
  531.     ENDIF
  532.  
  533. ;
  534. ; pascal OSErr DMGetNextMirroredDevice(GDHandle gDevice, GDHandle *mirroredDevice)
  535. ;
  536.     IF ¬ GENERATINGCFM THEN
  537.         Macro
  538.         _DMGetNextMirroredDevice
  539.             move.w    #$041B,d0
  540.             dc.w     $ABEB
  541.         EndM
  542.     ELSE
  543.         IMPORT_CFM_FUNCTION    DMGetNextMirroredDevice
  544.     ENDIF
  545.  
  546. ;
  547. ; pascal OSErr DMBlockMirroring(void)
  548. ;
  549.     IF ¬ GENERATINGCFM THEN
  550.         Macro
  551.         _DMBlockMirroring
  552.             moveq    #28,d0
  553.             dc.w     $ABEB
  554.         EndM
  555.     ELSE
  556.         IMPORT_CFM_FUNCTION    DMBlockMirroring
  557.     ENDIF
  558.  
  559. ;
  560. ; pascal OSErr DMUnblockMirroring(void)
  561. ;
  562.     IF ¬ GENERATINGCFM THEN
  563.         Macro
  564.         _DMUnblockMirroring
  565.             moveq    #29,d0
  566.             dc.w     $ABEB
  567.         EndM
  568.     ELSE
  569.         IMPORT_CFM_FUNCTION    DMUnblockMirroring
  570.     ENDIF
  571.  
  572. ;
  573. ; pascal OSErr DMGetDisplayMgrA5World(Ptr *dmA5)
  574. ;
  575.     IF ¬ GENERATINGCFM THEN
  576.         Macro
  577.         _DMGetDisplayMgrA5World
  578.             move.w    #$021E,d0
  579.             dc.w     $ABEB
  580.         EndM
  581.     ELSE
  582.         IMPORT_CFM_FUNCTION    DMGetDisplayMgrA5World
  583.     ENDIF
  584.  
  585. ;
  586. ; pascal OSErr DMGetDisplayIDByGDevice(GDHandle displayDevice, DisplayIDType *displayID, Boolean failToMain)
  587. ;
  588.     IF ¬ GENERATINGCFM THEN
  589.         Macro
  590.         _DMGetDisplayIDByGDevice
  591.             move.w    #$051F,d0
  592.             dc.w     $ABEB
  593.         EndM
  594.     ELSE
  595.         IMPORT_CFM_FUNCTION    DMGetDisplayIDByGDevice
  596.     ENDIF
  597.  
  598. ;
  599. ; pascal OSErr DMGetGDeviceByDisplayID(DisplayIDType displayID, GDHandle *displayDevice, Boolean failToMain)
  600. ;
  601.     IF ¬ GENERATINGCFM THEN
  602.         Macro
  603.         _DMGetGDeviceByDisplayID
  604.             move.w    #$0520,d0
  605.             dc.w     $ABEB
  606.         EndM
  607.     ELSE
  608.         IMPORT_CFM_FUNCTION    DMGetGDeviceByDisplayID
  609.     ENDIF
  610.  
  611. ;
  612. ; pascal OSErr DMSetDisplayComponent(GDHandle theDevice, Component displayComponent)
  613. ;
  614.     IF ¬ GENERATINGCFM THEN
  615.         Macro
  616.         _DMSetDisplayComponent
  617.             move.w    #$0421,d0
  618.             dc.w     $ABEB
  619.         EndM
  620.     ELSE
  621.         IMPORT_CFM_FUNCTION    DMSetDisplayComponent
  622.     ENDIF
  623.  
  624. ;
  625. ; pascal OSErr DMGetDisplayComponent(GDHandle theDevice, Component *displayComponent)
  626. ;
  627.     IF ¬ GENERATINGCFM THEN
  628.         Macro
  629.         _DMGetDisplayComponent
  630.             move.w    #$0422,d0
  631.             dc.w     $ABEB
  632.         EndM
  633.     ELSE
  634.         IMPORT_CFM_FUNCTION    DMGetDisplayComponent
  635.     ENDIF
  636.  
  637. ;
  638. ; pascal OSErr DMNewDisplay(GDHandle *newDevice, short driverRefNum, unsigned long mode, unsigned long reserved, DisplayIDType displayID, Component displayComponent, Handle displayState)
  639. ;
  640.     IF ¬ GENERATINGCFM THEN
  641.         Macro
  642.         _DMNewDisplay
  643.             move.w    #$0D23,d0
  644.             dc.w     $ABEB
  645.         EndM
  646.     ELSE
  647.         IMPORT_CFM_FUNCTION    DMNewDisplay
  648.     ENDIF
  649.  
  650. ;
  651. ; pascal OSErr DMDisposeDisplay(GDHandle disposeDevice, Handle displayState)
  652. ;
  653.     IF ¬ GENERATINGCFM THEN
  654.         Macro
  655.         _DMDisposeDisplay
  656.             move.w    #$0424,d0
  657.             dc.w     $ABEB
  658.         EndM
  659.     ELSE
  660.         IMPORT_CFM_FUNCTION    DMDisposeDisplay
  661.     ENDIF
  662.  
  663. ;
  664. ; pascal OSErr DMResolveDisplayComponents(void)
  665. ;
  666.     IF ¬ GENERATINGCFM THEN
  667.         Macro
  668.         _DMResolveDisplayComponents
  669.             moveq    #37,d0
  670.             dc.w     $ABEB
  671.         EndM
  672.     ELSE
  673.         IMPORT_CFM_FUNCTION    DMResolveDisplayComponents
  674.     ENDIF
  675.  
  676. ;
  677. ; pascal OSErr DMRegisterExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, unsigned short nofifyOnFlags, ProcessSerialNumberPtr whichPSN)
  678. ;
  679.     IF ¬ GENERATINGCFM THEN
  680.         Macro
  681.         _DMRegisterExtendedNotifyProc
  682.             move.w    #$07EF,d0
  683.             dc.w     $ABEB
  684.         EndM
  685.     ELSE
  686.         IMPORT_CFM_FUNCTION    DMRegisterExtendedNotifyProc
  687.     ENDIF
  688.  
  689. ;
  690. ; pascal OSErr DMRemoveExtendedNotifyProc(DMExtendedNotificationUPP notifyProc, void *notifyUserData, ProcessSerialNumberPtr whichPSN, unsigned short removeFlags)
  691. ;
  692.     IF ¬ GENERATINGCFM THEN
  693.         Macro
  694.         _DMRemoveExtendedNotifyProc
  695.             move.w    #$0726,d0
  696.             dc.w     $ABEB
  697.         EndM
  698.     ELSE
  699.         IMPORT_CFM_FUNCTION    DMRemoveExtendedNotifyProc
  700.     ENDIF
  701.  
  702. ;
  703. ; pascal OSErr DMNewAVPanelList(DisplayIDType displayID, ResType panelType, DMFidelityType minimumFidelity, unsigned long panelListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  704. ;
  705.     IF ¬ GENERATINGCFM THEN
  706.         Macro
  707.         _DMNewAVPanelList
  708.             move.w    #$0C27,d0
  709.             dc.w     $ABEB
  710.         EndM
  711.     ELSE
  712.         IMPORT_CFM_FUNCTION    DMNewAVPanelList
  713.     ENDIF
  714.  
  715. ;
  716. ; pascal OSErr DMNewAVEngineList(DisplayIDType displayID, ResType engineType, DMFidelityType minimumFidelity, unsigned long engineListFlags, unsigned long reserved, DMListIndexType *engineCount, DMListType *engineList)
  717. ;
  718.     IF ¬ GENERATINGCFM THEN
  719.         Macro
  720.         _DMNewAVEngineList
  721.             move.w    #$0C28,d0
  722.             dc.w     $ABEB
  723.         EndM
  724.     ELSE
  725.         IMPORT_CFM_FUNCTION    DMNewAVEngineList
  726.     ENDIF
  727.  
  728. ;
  729. ; pascal OSErr DMNewAVDeviceList(ResType deviceType, unsigned long deviceListFlags, unsigned long reserved, DMListIndexType *deviceCount, DMListType *deviceList)
  730. ;
  731.     IF ¬ GENERATINGCFM THEN
  732.         Macro
  733.         _DMNewAVDeviceList
  734.             move.w    #$0A29,d0
  735.             dc.w     $ABEB
  736.         EndM
  737.     ELSE
  738.         IMPORT_CFM_FUNCTION    DMNewAVDeviceList
  739.     ENDIF
  740.  
  741. ;
  742. ; pascal OSErr DMNewAVPortListByPortType(ResType subType, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  743. ;
  744.     IF ¬ GENERATINGCFM THEN
  745.         Macro
  746.         _DMNewAVPortListByPortType
  747.             move.w    #$0A2A,d0
  748.             dc.w     $ABEB
  749.         EndM
  750.     ELSE
  751.         IMPORT_CFM_FUNCTION    DMNewAVPortListByPortType
  752.     ENDIF
  753.  
  754. ;
  755. ; pascal OSErr DMGetIndexedComponentFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMComponentListIteratorUPP listIterator, void *userData)
  756. ;
  757.     IF ¬ GENERATINGCFM THEN
  758.         Macro
  759.         _DMGetIndexedComponentFromList
  760.             move.w    #$0A2B,d0
  761.             dc.w     $ABEB
  762.         EndM
  763.     ELSE
  764.         IMPORT_CFM_FUNCTION    DMGetIndexedComponentFromList
  765.     ENDIF
  766.  
  767. ;
  768. ; pascal OSErr DMDisposeList(DMListType panelList)
  769. ;
  770.     IF ¬ GENERATINGCFM THEN
  771.         Macro
  772.         _DMDisposeList
  773.             move.w    #$022C,d0
  774.             dc.w     $ABEB
  775.         EndM
  776.     ELSE
  777.         IMPORT_CFM_FUNCTION    DMDisposeList
  778.     ENDIF
  779.  
  780. ;
  781. ; pascal OSErr DMGetNameByAVID(AVIDType theID, Str255 *name)
  782. ;
  783.     IF ¬ GENERATINGCFM THEN
  784.         Macro
  785.         _DMGetNameByAVID
  786.             move.w    #$042D,d0
  787.             dc.w     $ABEB
  788.         EndM
  789.     ELSE
  790.         IMPORT_CFM_FUNCTION    DMGetNameByAVID
  791.     ENDIF
  792.  
  793. ;
  794. ; pascal OSErr DMNewAVIDByPortComponent(Component thePortComponent, ResType portKind, unsigned long reserved, AVIDType *newID)
  795. ;
  796.     IF ¬ GENERATINGCFM THEN
  797.         Macro
  798.         _DMNewAVIDByPortComponent
  799.             move.w    #$082E,d0
  800.             dc.w     $ABEB
  801.         EndM
  802.     ELSE
  803.         IMPORT_CFM_FUNCTION    DMNewAVIDByPortComponent
  804.     ENDIF
  805.  
  806. ;
  807. ; pascal OSErr DMGetPortComponentByAVID(DisplayIDType thePortID, Component *thePortComponent, ComponentDescription *theDesciption, ResType *thePortKind)
  808. ;
  809.     IF ¬ GENERATINGCFM THEN
  810.         Macro
  811.         _DMGetPortComponentByAVID
  812.             move.w    #$082F,d0
  813.             dc.w     $ABEB
  814.         EndM
  815.     ELSE
  816.         IMPORT_CFM_FUNCTION    DMGetPortComponentByAVID
  817.     ENDIF
  818.  
  819. ;
  820. ; pascal OSErr DMSendDependentNotification(ResType notifyType, ResType notifyClass, AVIDType displayID, ComponentInstance notifyComponent)
  821. ;
  822.     IF ¬ GENERATINGCFM THEN
  823.         Macro
  824.         _DMSendDependentNotification
  825.             move.w    #$0A30,d0
  826.             dc.w     $ABEB
  827.         EndM
  828.     ELSE
  829.         IMPORT_CFM_FUNCTION    DMSendDependentNotification
  830.     ENDIF
  831.  
  832. ;
  833. ; pascal OSErr DMDisposePortComponent(Component thePortComponent)
  834. ;
  835.     IF ¬ GENERATINGCFM THEN
  836.         Macro
  837.         _DMDisposePortComponent
  838.             move.w    #$0231,d0
  839.             dc.w     $ABEB
  840.         EndM
  841.     ELSE
  842.         IMPORT_CFM_FUNCTION    DMDisposePortComponent
  843.     ENDIF
  844.  
  845. ;
  846. ; pascal OSErr DMSaveScreenPrefs(unsigned long reserved1, unsigned long saveFlags, unsigned long reserved2)
  847. ;
  848.     IF ¬ GENERATINGCFM THEN
  849.         Macro
  850.         _DMSaveScreenPrefs
  851.             move.w    #$0632,d0
  852.             dc.w     $ABEB
  853.         EndM
  854.     ELSE
  855.         IMPORT_CFM_FUNCTION    DMSaveScreenPrefs
  856.     ENDIF
  857.  
  858. ;
  859. ; pascal OSErr DMNewAVIDByDeviceComponent(Component theDeviceComponent, ResType portKind, unsigned long reserved, DisplayIDType *newID)
  860. ;
  861.     IF ¬ GENERATINGCFM THEN
  862.         Macro
  863.         _DMNewAVIDByDeviceComponent
  864.             move.w    #$0833,d0
  865.             dc.w     $ABEB
  866.         EndM
  867.     ELSE
  868.         IMPORT_CFM_FUNCTION    DMNewAVIDByDeviceComponent
  869.     ENDIF
  870.  
  871. ;
  872. ; pascal OSErr DMNewAVPortListByDeviceAVID(AVIDType theID, DMFidelityType minimumFidelity, unsigned long portListFlags, unsigned long reserved, DMListIndexType *devicePortCount, DMListType *theDevicePortList)
  873. ;
  874.     IF ¬ GENERATINGCFM THEN
  875.         Macro
  876.         _DMNewAVPortListByDeviceAVID
  877.             move.w    #$0C34,d0
  878.             dc.w     $ABEB
  879.         EndM
  880.     ELSE
  881.         IMPORT_CFM_FUNCTION    DMNewAVPortListByDeviceAVID
  882.     ENDIF
  883.  
  884. ;
  885. ; pascal OSErr DMGetDeviceComponentByAVID(AVIDType theDeviceID, Component *theDeviceComponent, ComponentDescription *theDesciption, ResType *theDeviceKind)
  886. ;
  887.     IF ¬ GENERATINGCFM THEN
  888.         Macro
  889.         _DMGetDeviceComponentByAVID
  890.             move.w    #$0835,d0
  891.             dc.w     $ABEB
  892.         EndM
  893.     ELSE
  894.         IMPORT_CFM_FUNCTION    DMGetDeviceComponentByAVID
  895.     ENDIF
  896.  
  897. ;
  898. ; pascal OSErr DMNewDisplayModeList(DisplayIDType displayID, unsigned long modeListFlags, unsigned long reserved, DMListIndexType *thePanelCount, DMListType *thePanelList)
  899. ;
  900.     IF ¬ GENERATINGCFM THEN
  901.         Macro
  902.         _DMNewDisplayModeList
  903.             move.w    #$0A36,d0
  904.             dc.w     $ABEB
  905.         EndM
  906.     ELSE
  907.         IMPORT_CFM_FUNCTION    DMNewDisplayModeList
  908.     ENDIF
  909.  
  910. ;
  911. ; pascal OSErr DMGetIndexedDisplayModeFromList(DMListType panelList, DMListIndexType itemIndex, unsigned long reserved, DMDisplayModeListIteratorUPP listIterator, void *userData)
  912. ;
  913.     IF ¬ GENERATINGCFM THEN
  914.         Macro
  915.         _DMGetIndexedDisplayModeFromList
  916.             move.w    #$0A37,d0
  917.             dc.w     $ABEB
  918.         EndM
  919.     ELSE
  920.         IMPORT_CFM_FUNCTION    DMGetIndexedDisplayModeFromList
  921.     ENDIF
  922.  
  923. ;
  924. ; pascal OSErr DMGetGraphicInfoByAVID(AVIDType theID, PicHandle *theAVPcit, Handle *theAVIconSuite, AVLocationRec *theAVLocation)
  925. ;
  926.     IF ¬ GENERATINGCFM THEN
  927.         Macro
  928.         _DMGetGraphicInfoByAVID
  929.             move.w    #$0838,d0
  930.             dc.w     $ABEB
  931.         EndM
  932.     ELSE
  933.         IMPORT_CFM_FUNCTION    DMGetGraphicInfoByAVID
  934.     ENDIF
  935.  
  936. ;
  937. ; pascal OSErr DMGetAVPowerState(AVIDType theID, AVPowerStatePtr getPowerState, unsigned long reserved1)
  938. ;
  939.     IF ¬ GENERATINGCFM THEN
  940.         Macro
  941.         _DMGetAVPowerState
  942.             move.w    #$0839,d0
  943.             dc.w     $ABEB
  944.         EndM
  945.     ELSE
  946.         IMPORT_CFM_FUNCTION    DMGetAVPowerState
  947.     ENDIF
  948.  
  949. ;
  950. ; pascal OSErr DMSetAVPowerState(AVIDType theID, AVPowerStatePtr setPowerState, unsigned long reserved1, Handle displayState)
  951. ;
  952.     IF ¬ GENERATINGCFM THEN
  953.         Macro
  954.         _DMSetAVPowerState
  955.             move.w    #$083A,d0
  956.             dc.w     $ABEB
  957.         EndM
  958.     ELSE
  959.         IMPORT_CFM_FUNCTION    DMSetAVPowerState
  960.     ENDIF
  961.  
  962. ;
  963. ; pascal OSErr DMGetDeviceAVIDByPortAVID(AVIDType portAVID, AVIDType *deviceAVID)
  964. ;
  965.     IF ¬ GENERATINGCFM THEN
  966.         Macro
  967.         _DMGetDeviceAVIDByPortAVID
  968.             move.w    #$043B,d0
  969.             dc.w     $ABEB
  970.         EndM
  971.     ELSE
  972.         IMPORT_CFM_FUNCTION    DMGetDeviceAVIDByPortAVID
  973.     ENDIF
  974.  
  975.     ENDIF ; __DISPLAYS__
  976.